package com.sunkyc.framework.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sunkyc.framework.system.entity.SysRoleDept;
import com.sunkyc.framework.system.mapper.SysRoleDeptMapper;
import com.sunkyc.framework.system.service.SysRoleDeptService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 角色和部门关联表 服务实现类
 * </p>
 *
 * @author sunkyc
 * @since 2022-05-31
 */
@Service
@RequiredArgsConstructor
public class SysRoleDeptServiceImpl extends ServiceImpl<SysRoleDeptMapper, SysRoleDept> implements SysRoleDeptService {
    private final SysRoleDeptMapper baseMapper;

    @Override
    public List<Long> queryDeptIdsByRoleId(Long roleId) {
        return baseMapper.queryDeptIdsByRoleId(roleId);
    }
}
